package net.dlz.example.service;

import net.dlz.example.domain.Announce;
import net.dlz.example.domain.SearchAnnounceResponse;

import java.util.List;

public interface AnnounceService {
    List<Announce> listAnnounce();

    SearchAnnounceResponse findAllAnnounce(Integer pageNum, Integer pageSize);

    SearchAnnounceResponse findAnnounceLinkName(String keywords, Integer pageNum, Integer pageSize);

    int saveAnnounce(Announce announce);

    int deleteAnnounce(String id);

    Announce findAnnounceByPrimaryKey(String id);
}
